package com.eusun.design.strategy;

public class Demo {
    public static void main(String[] args) {
        ModelDuck duck = new ModelDuck();
        duck.setFlyBehavior(new FlyWithWings());
        duck.setQuackBehavior(new Squeak());
        duck.display();
        duck.performQuack();
        duck.performFly();
    }
}
